package com.atchangsha.system.controller;

import java.util.Arrays;
import java.util.Map;

import com.atchangsha.system.dto.IodDTO;
import org.springframework.web.bind.annotation.*;
import com.atchangsha.system.entity.PointEntity;
import com.atchangsha.system.service.PointService;
import com.atchangsha.system.common.utils.PageUtils;
import com.atchangsha.system.common.utils.Result;
import javax.annotation.Resource;

/**
 * 积分表
 * @author 卓越班项目第二组
 * @date 2022-05-12 21:15:33
 */
@RestController
@RequestMapping("system/point")
@CrossOrigin
public class PointController {
    @Resource
    private PointService pointService;

    /**
     * 增减积分
     */
    @PostMapping("/iod")
    public Result iod(@RequestBody IodDTO iodDTO){
        return pointService.iod(iodDTO);
    }

}
